fix display of uninitialized ports
authorMike Baker <[email protected]>
Wed, 14 Jun 2006 22:44:35 +0000 (22:44 +0000)
committerMike Baker <[email protected]>
Wed, 14 Jun 2006 22:44:35 +0000 (22:44 +0000)
SVN-Revision: 3946

openwrt/target/linux/package/switch/src/switch-robo.c

index 7e4c4de2967e14e97face2ca1cec1939e21ad6ad..0e85104331f34959f30428f2756606d45f65e87e 100644 (file)
@@ -313,6 +313,8 @@ static int handle_vlan_port_read(void *driver, char *buf, int nr)
                        len += sprintf(buf + len, "\n");
                }
        }
+       
+       buf[len] = '\0';
 
        return len;
 }